package adapter;

public abstract class Player {

    protected String name;

    // 进攻方法
    public abstract void attack();

    // 防守
    public abstract void defense();

    public Player () {
        System.out.println("抽象类的构造方法-----执行了");
    }

    public Player (String name) {
        this.name = name;
    }



}
